<template>
    <div style="height: 100%">
        <router-view></router-view>
    </div>
</template>
<script>
// import { userLogin } from '@/api/user'
import { mapActions } from 'vuex'

export default {
  data () {
    return {
      active: 0,
      userBg: false
    }
  },
  mounted () {
    if (this.$common.xeUtils.locat().host !== 'kouzhao.iwhycat.com') {
      // userLogin().then(ret => {
      //  console.log(ret, '调用登录接口')
      // })
    }
  },
  computed: {
    menuState () {
      return this.active
    },
    isShow () {
      return this.$store.state.app.navBarShow
    }
  },
  methods: {
    ...mapActions([
      'setNavIndex',
      'setNavBarShow'
    ])
  },
  watch: {
    $route (to) {
    }
  }
}
</script>
<style>
    @import "../assets/icons/iconfont.css";
</style>
